#ifndef MOUSE_H
#define MOUSE_H

#include <QGraphicsItem>
#include <QPen>
#include <QPainter>
#include <QMouseEvent>

class Mouse : public QObject, public QGraphicsItem
{
    Q_OBJECT
public:
    Mouse();
    void paint(QPainter *painter, const QStyleOptionGraphicsItem *option,
                QWidget *widget);
    QRectF boundingRect() const;
    void mousePressEvent(QMouseEvent *evt);
    void mouseReleaseEvent(QMouseEvent *evt);
private:
    qreal accuracy;
signals:
    void mousePressed(QMouseEvent *evt);
    void mouseReleased(QMouseEvent *evt);
};

#endif // MOUSE_H
